<?php /* Smarty version 2.6.16, created on 2012-03-14 20:00:11
         compiled from likes.tpl */ ?>
<div id="paging"> 
<?php echo '
<script type="text/javascript">
function SortingList(sorting_url,sorting_by)
{
var params = {
	\'list_for\':\'sorting\',
	\'sorting_by\': sorting_by,
	\'IsProcess\': \'Y\',
	\'action\': \'send\',
};

$.ajax({
	type: "GET",
	url: sorting_url,
	data: params,			
	dataType: \'html\',
	success: function(data)
	{				
		$(".container-inner").html(data+"<div class=\'clear\'></div>");
	}
});
return false;		
}
</script>
<script type="text/javascript">
function redirect_function(id)
{
//alert(id);
  document.forms["videoform"+id].submit();
}
</script>
'; ?>

<div class="content">
   		<!-- tab -->
    	<ul class="tabflex">
        	<li><a href="dashboard.php"><span>Dashboard</span></a></li>
            <li><a href="inbox.php"><span>Message</span></a></li>
			<li><a href="javascript:;" ><span>Profile</span></a></li>
			<?php if ($this->_tpl_vars['is_coach'] == '1'): ?><li><a href="coach_game.php"><span>Coach</span></a></li><?php endif; ?>
			<?php if ($this->_tpl_vars['is_partner'] == '1'): ?><li><a href="training_partner_game.php"><span>Training Partner</span></a></li><?php endif; ?>
			<li><a href="inbox.php"><span>Lessons</span></a></li>
			<li><a href="inbox.php" class="active"><span>Videos</span></a></li>
			<li><a href="inbox.php"><span>Reviews</span></a></li>
			<!--    <li><a href="#"><span>Students</span></a></li>-->
        </ul>
        <!-- tab -->
        <div class="clear"></div>
        <div class="tabular-content"> 
		 <div class="tab_sub">
            	<ul>
                	<li><a href="inbox.php" class="active">Upload Videos</a></li>
                    <li><a href="javascript:;" >Liked Videos</a></li>
                </ul>
            </div> 
		 <div class="clear"></div>
	  <?php if ($this->_tpl_vars['NumReplay'] > 0): ?>
      <div class="profile-list">
	  <?php unset($this->_sections['videoRow']);
$this->_sections['videoRow']['name'] = 'videoRow';
$this->_sections['videoRow']['loop'] = is_array($_loop=$this->_tpl_vars['LikeArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['videoRow']['show'] = true;
$this->_sections['videoRow']['max'] = $this->_sections['videoRow']['loop'];
$this->_sections['videoRow']['step'] = 1;
$this->_sections['videoRow']['start'] = $this->_sections['videoRow']['step'] > 0 ? 0 : $this->_sections['videoRow']['loop']-1;
if ($this->_sections['videoRow']['show']) {
    $this->_sections['videoRow']['total'] = $this->_sections['videoRow']['loop'];
    if ($this->_sections['videoRow']['total'] == 0)
        $this->_sections['videoRow']['show'] = false;
} else
    $this->_sections['videoRow']['total'] = 0;
if ($this->_sections['videoRow']['show']):

            for ($this->_sections['videoRow']['index'] = $this->_sections['videoRow']['start'], $this->_sections['videoRow']['iteration'] = 1;
                 $this->_sections['videoRow']['iteration'] <= $this->_sections['videoRow']['total'];
                 $this->_sections['videoRow']['index'] += $this->_sections['videoRow']['step'], $this->_sections['videoRow']['iteration']++):
$this->_sections['videoRow']['rownum'] = $this->_sections['videoRow']['iteration'];
$this->_sections['videoRow']['index_prev'] = $this->_sections['videoRow']['index'] - $this->_sections['videoRow']['step'];
$this->_sections['videoRow']['index_next'] = $this->_sections['videoRow']['index'] + $this->_sections['videoRow']['step'];
$this->_sections['videoRow']['first']      = ($this->_sections['videoRow']['iteration'] == 1);
$this->_sections['videoRow']['last']       = ($this->_sections['videoRow']['iteration'] == $this->_sections['videoRow']['total']);
?>
	   	 <form name="videoform<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
" id="videoform<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
" method="post" 
			action="videodetails.php?video_id=<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
">
				<input type="hidden" name="game_id" value="<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['game_id']; ?>
"  />
				
		  <?php $this->assign('v', $this->_sections['videoRow']['index']+1); ?>
		  <div id="deldiv_<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
" >
			 <div <?php if ($this->_tpl_vars['v']%3 == '0'): ?>class="games-replay-last"<?php else: ?>class="games-replay-last"<?php endif; ?>>
			   <div class="replay-content"  >
			    <a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
)">
			   <img src="uploaded/video_images/thumbs/big_<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_image']; ?>
" alt="" border="0" /></a>
			   
			   </div>
			   <div class="replay-content">
				  <div class="replay-title">
				  <a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
)"><?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_title']; ?>
</a>
				  <br /><span class="date"><?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_date']; ?>
<br />
				  Duration : <?php if ($this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['time_length'] != ''):  echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['time_length']; ?>
 min<?php else: ?>N/A<?php endif; ?>
				  </span></div>
				 <!--  <?php if ($this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['user_id'] != $_SESSION['user_id'] && $_SESSION['user_id'] != ''): ?>
				  <div id="game-rating_<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
">			 
				  <a href="javascript:;" onclick="return LikeVideo(<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['user_id']; ?>
,<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
,'<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['like']; ?>
',<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['numlike']; ?>
)">
				  <div class="game-rating"><?php if ($this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['like'] == 'Y'): ?> <img alt="Unlike" src="images/unlike.png"> <?php else: ?> <img alt="Like" src="images/like.png"> <?php endif; ?></div>  
				  </a>      
				  </div>  
				  <?php endif; ?>-->
				    <div class="game-rating">
					<strong>Likes</strong>&nbsp;<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['numlike']; ?>

					<span id="votes_<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
"></span>
					<br />
					<strong>Unlikes</strong>&nbsp;<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['numunlike']; ?>

					<span id="votes_<?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['video_id']; ?>
"></span>
					</div>        			
				  View Count : <?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['view_count']; ?>
	  
                  <div class="replay-title" style="padding-top:0px; width:90%"><span class="date">Uploaded by <em><?php echo $this->_tpl_vars['LikeArr'][$this->_sections['videoRow']['index']]['user']; ?>
</em></span></div>
                 
			   </div>
			 </div>		 	 
		  <?php if ($this->_tpl_vars['v']%3 == '0'): ?><!--<div class="clear"></div>--><?php endif; ?>
		   </div>
		  </form>	 
        <?php endfor; endif; ?>
       <div class="clear"></div>
      </div>
      <?php if ($this->_tpl_vars['pagination_arr'][1]): ?>
      <div class="clear"></div>
      <div class="pagin">
         <ul>
            <?php echo $this->_tpl_vars['pagination_arr'][1]; ?>

         </ul>
      </div>
	  <?php endif; ?>
	 <?php else: ?>
	    No Videos found......
     <?php endif; ?>
    </div>
  </div>